package com.ccrfid.rmc6.entity.mattress;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "v_ht_bed_alarm_history")
public class BedAlarmView {
    private Long id;
    private String bedSn;
    private String mattressSn;
    private Long personnelId;
    private String personnelName;
    private Integer alarmType;

    private Integer state;
    private Integer heartRate;
    private Integer breathRate;
    private Integer weight;
    private Integer wet;
    private Integer sleepState;
    private Timestamp recordTime;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "bed_sn", nullable = false)
    public String getBedSn() {
        return bedSn;
    }

    public void setBedSn(String bedSn) {
        this.bedSn = bedSn;
    }

    @Basic
    @Column(name = "mattress_sn")
    public String getMattressSn() {
        return mattressSn;
    }

    public void setMattressSn(String mattressSn) {
        this.mattressSn = mattressSn;
    }

    @Basic
    @Column(name = "personnel_id")
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_name")
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "alarm_type", nullable = false)
    public Integer getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(Integer alarmType) {
        this.alarmType = alarmType;
    }

    @Basic
    @Column(name = "state")
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Basic
    @Column(name = "heart_rate")
    public Integer getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Integer heartRate) {
        this.heartRate = heartRate;
    }

    @Basic
    @Column(name = "breath_rate")
    public Integer getBreathRate() {
        return breathRate;
    }

    public void setBreathRate(Integer breathRate) {
        this.breathRate = breathRate;
    }

    @Basic
    @Column(name = "weight")
    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    @Basic
    @Column(name = "wet")
    public Integer getWet() {
        return wet;
    }

    public void setWet(Integer wet) {
        this.wet = wet;
    }

    @Basic
    @Column(name = "sleep_state")
    public Integer getSleepState() {
        return sleepState;
    }

    public void setSleepState(Integer sleepState) {
        this.sleepState = sleepState;
    }

    @Basic
    @Column(name = "record_time")
    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }
}
